package com.txby.pf.modules.busi.entity;

import java.io.Serializable;
import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;

import com.txby.pf.common.validator.group.AddGroup;
import com.txby.pf.common.validator.group.UpdateGroup;

/**
 * 新闻实体类
 *
 */
public class BusiNewsEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	/**
	 * 用户ID
	 */
	private Long newsId;

	/**
	 * 新闻标题
	 */
	@NotBlank(message="新闻标题不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String title;


	/**
	 * 副标题
	 */
	private String subhead;
	
	
	/**
	 * 缩略图
	 */
	private String thumb;
	
	
	/**
	 * 新闻类型
	 */
	@NotBlank(message="新闻类型不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String 	newsType;
	
	/**
	 * 新闻内容
	 */
	@NotBlank(message="新闻内容不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String 	content;

	
	/**
	 * url
	 */
	private String url;
	
	/**
	 * 作者
	 */
	private String author;

	/**
	 * 阅读量
	 */
	private Long pageviews;
	  

	/**
	 * 发布时间
	 */
	private Date publishTime;
	
	

	/**
	 * 状态  0：禁用   1：正常
	 */
	private Integer status;
	
	
	/**
	 * 创建者ID
	 */
	private Long creater;

	/**
	 * 创建时间
	 */
	private Date createTime;
	
	/**
	 * 修改者ID
	 */
	private Long updater;
	
	/**
	 * 修改时间
	 */
	private Date updateTime;

	public Long getNewsId() {
		return newsId;
	}

	public void setNewsId(Long newsId) {
		this.newsId = newsId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSubhead() {
		return subhead;
	}

	public void setSubhead(String subhead) {
		this.subhead = subhead;
	}

	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}

	public String getNewsType() {
		return newsType;
	}

	public void setNewsType(String newsType) {
		this.newsType = newsType;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Long getPageviews() {
		return pageviews;
	}

	public void setPageviews(Long pageviews) {
		this.pageviews = pageviews;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getCreater() {
		return creater;
	}

	public void setCreater(Long creater) {
		this.creater = creater;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getUpdater() {
		return updater;
	}

	public void setUpdater(Long updater) {
		this.updater = updater;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
